package com.xyl.sso1.client;

import cn.dev33.satoken.sso.SaSsoManager;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * SSO模式一，Client端 Demo
 */
@SpringBootApplication
public class SsoClient1Application {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(SsoClient1Application.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
        System.out.println();
        System.out.println("---------------------- Sa-Token SSO 模式一 Client 端启动成功 ----------------------");
        System.out.println("配置信息：" + SaSsoManager.getClientConfig());
        System.out.println("测试访问应用端一: http://s1.stp.com:9001");
        System.out.println("测试访问应用端二: http://s2.stp.com:9001");
        System.out.println("测试访问应用端三: http://s3.stp.com:9001");
        System.out.println("测试前需要根据官网文档修改hosts文件，测试账号密码：sa / 123456");
        System.out.println();
    }

}